//CAM_KEY_pressed.sqf start
switch ((_this select 1)) do
{
		
		//N key
		case 49:
		{	
			if (!NORRN_CAM_NVG) then
			{
				camUseNVG true;
				NORRN_CAM_NVG = true;
			}else {
				camUseNVG false;
				NORRN_CAM_NVG = false;
			};
		};
		
		// ESC Key
		case 1:
		{
			NORRN_CAM_TYPE = 1;
		};
		
		
		//S key
		case 31:
		{	
			if checkattach then 
			{
				_direction = direction NORRN_SPECTATE_cam;
				// _direction = direction lapin;
				_pos = getPos lapin;
				lapin setdir _direction;
				// lapin setPos [(_pos select 0)-(0.5*sin(_direction)), (_pos select 1)-(0.5*cos(_direction)), (_pos select 2)];
				lapin setPos [(_pos select 0)-(Step3d*sin(_direction)), (_pos select 1)-(Step3d*cos(_direction)), 0];
			};
		};
		
		//W key
		case 17:
		{	
			if checkattach then 
			{
				// _direction = direction lapin;
				_direction = direction NORRN_SPECTATE_cam;
				_pos = getPos lapin;
				lapin setdir _direction;
				// lapin setPos [(_pos select 0)+(0.5*sin(_direction)), (_pos select 1)+(0.5*cos(_direction)),(_pos select 2)];
				lapin setPos [(_pos select 0)+(Step3d*sin(_direction)), (_pos select 1)+(Step3d*cos(_direction)),0];
			};
		};
		
		//A key
		case 30:
		{	
			if checkattach then 
			{
				_direction = direction NORRN_SPECTATE_cam;
				//_direction = direction lapin;
				_pos = getPos lapin;
				//lapin setPos [(_pos select 0)+(0.5*sin(_direction)), (_pos select 1)+(0.5*cos(_direction)),(_pos select 2)];
				lapin setPos [(_pos select 0)+(-Step3d*sin(_direction+90)), (_pos select 1)+(-Step3d*cos(_direction+90)),0];
			};
		};
		
		//D key
		case 32:
		{	
			if checkattach then 
			{
				_direction = direction NORRN_SPECTATE_cam;
				//_direction = direction lapin;
				_pos = getPos lapin;
				//lapin setPos [(_pos select 0)+(0.5*sin(_direction)), (_pos select 1)+(0.5*cos(_direction)),(_pos select 2)];
				lapin setPos [(_pos select 0)+(Step3d*sin(_direction+90)), (_pos select 1)+(Step3d*cos(_direction+90)),0];
			};
		};

		
}; 
